﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SiteScan
{
    public partial class SetForm1 : Form
    {
        public SetForm1()
        {
            InitializeComponent();
        }

        //这是在子窗体中定义的属性，用来获取子窗体中的值
        public CheckBox getSetForm1Checkbox1
        {
            get
            {
                return checkBox1;
            }
        }
        public CheckBox getSetForm1Checkbox2
        {
            get
            {
                return checkBox2;
            }
        }
        public CheckBox getSetForm1Checkbox3
        {
            get
            {
                return checkBox3;
            }
        }
        public CheckBox getSetForm1Checkbox4
        {
            get
            {
                return checkBox4;
            }
        }
        public CheckBox getSetForm1Checkbox5
        {
            get
            {
                return checkBox5;
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            checkBox1.Checked = true;
            checkBox2.Checked = false;
            checkBox3.Checked = false;
            checkBox4.Checked = false;
            checkBox5.Checked = false;
        }
    }
}
